import http from '@/service'

// 创建文章
export function insertArticle(data: any) {
	return http.post({
		url: '/article/create',
		data
	})
}
// 查询文章列表
export function selectArticle(params: any) {
	return http.get({
		url: '/article/list',
		params
	})
}
// 根据文章id查询详情
export function selectArticleDetail(params: any) {
	return http.get({
		url: '/article/detail',
		params
	})
}
// 编辑文章信息及内容
export function updateArticle(data: any) {
	return http.post({
		url: '/article/update',
		data
	})
}
